<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCrmWorkRoleTable extends Migration
{
    /**
     * Run the migrations.
     * 上班时间段角色表
     * @return void
     */
    public function up()
    {
        //
        Schema::create('crm_work_role', function (Blueprint $table) {
            $table->engine='MyISAM';
            $table->comment='上班时间段角色表';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->string('name',10)->comment('角色名称');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('crm_work_role');
    }
}
